package org.dftproject.genesis.core;

import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator extends Plugin implements BundleActivator {

	public final static String ID = "org.dftproject.genesis.core";

	public static final String COLLECTION_DATA_PROVIDER_FACTORIES_EXTENSION_POINT = "collectionDataProviderFactories";
	public static final String PERSISTENCE_FACTORIES_EXTENSION_POINT = "persistenceFactories";
	public static final String SEARCH_PROVIDERS_EXTENSION_POINT = "searchProviders";

	private static Activator plugin;

	@Override
	public void start(BundleContext context) throws Exception {
		super.start(context);
		plugin = this;
	}

	@Override
	public void stop(BundleContext context) throws Exception {
		plugin = null;
		super.stop(context);
	}
	
	public static Activator getDefault() {
		return plugin;
	}

}
